package com.app.repository.interfaces;

import com.app.model.main.Favorites;

import java.util.List;

public interface FavoritesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Favorites record);

    int insertSelective(Favorites record);

    Favorites selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Favorites record);

    int updateByPrimaryKey(Favorites record);

    List<Favorites> selectByUserId(long userId);

    Favorites selectByUserIdAndName(long userId, String name);
}